<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	$powder_min = 5 ;
	include(ROOTPATH .'include'. DS .'checkPowder.php');
	include "header.php";
?>
<script type="text/javascript">var tagList='<?php echo $tagsUrl;?>';</script>
<script type="text/javascript" src="<?php echo JS_PATH;?>taskManage.js"></script>
</head>
<body>

<?php require('top.php'); ?>
<div class="pos">	
    <div class="contents">
    	<?php require('nav.php'); ?>   
        <h2 class="title"><?php echo $navigation -> getList();?><span><a href="<?php echo urlRewrite('option=taskAdd')?>"><?php echo lang_creat_task;?></a></span></h2>
        <div id="taskList" class="mediaList">
			<?php
			$userInfo = $user -> getUser();
			if( $userInfo['powder'] <= 5 )
				echo $tasks -> getTaskLists($user -> id());
			else
				echo $tasks -> getTaskLists('');
			?>
        </div>
        
    </div><!-- .contents-->
</div>


<div class="clear"></div>
<div class="pos posFooter">
	<div class="highOther">
        <form action="<?php echo WEB_ROOT_PATH;?>?option=search" method="get" class="form" id="searchForm">
        	<input name="option" type="hidden" value="search" />
            <input name="searchType" type="hidden" value="task" />
            <input name="key" type="text" class="text shiningTFD" id="searchTag" maxlength="20" value="<?php echo $searchKey ;?>" defaultVal="<?php echo lang_search_task;?>" />
    		<input type="submit" value="<?php echo lang_submit;?>" class="submit" onClick="alert('暂未未开放');return false;" />
        </form>
    </div>
</div>

</body>
</html>
